package io.geekidea.springbootplus.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Null;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SysOrder对象", description = "订单")
public class SysOrderDetails extends BaseEntity {

    private static final long serialVersionUID = -3885512205165458030L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单编号")
    private Long orderId;

    @ApiModelProperty("商品编号")
    private Integer productId;

    @ApiModelProperty("购买数量")
    private Integer quantity;

    @ApiModelProperty("小计")
    private BigDecimal subtotal;

    @ApiModelProperty("商品售价")
    private BigDecimal productPrice;

    @ApiModelProperty("商品封面")
    private String productCover;

    @ApiModelProperty("商品名称")
    private String productName;

}